html,
body {
  height: 100%;
  margin: 0;
}
#app {
  width: 100%;
  height: 100%;
  font-size: 0.3733rem;
  position: relative;
}
img {
  // max-width: 100%;
  max-width: 100%;
}
* {
  box-sizing: border-box;
}
.page {
  min-width: 320px;
  max-width: 640px;
  width: 100%;
  min-height: 100%;
  // height: 100%;
  overflow: auto;
  margin: 0 auto;
  font-size: 0.3733rem;
  background: #f5f5f5;
  word-break: break-all;
  word-wrap: break-word;
  z-index: 10;
}
#copyright {
  // display: block;
  width: 100%;
  text-align: center;
  font-size: 0.31111rem;
  color: #999;
  padding: 0.3rem 0;
  box-sizing: border-box;
  display: none;
}
:root {
  --safe-area-inset-top: 0px;
  --safe-area-inset-right: 0px;
  --safe-area-inset-bottom: 0px;
  --safe-area-inset-left: 0px;
}

@supports (top: constant(safe-area-inset-top)) {
  :root {
    --safe-area-inset-top: constant(safe-area-inset-top);
    --safe-area-inset-right: constant(safe-area-inset-right);
    --safe-area-inset-bottom: constant(safe-area-inset-bottom);
    --safe-area-inset-left: constant(safe-area-inset-left);
  }
}

@supports (top: env(safe-area-inset-top)) {
  :root {
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-right: env(safe-area-inset-right);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
  }
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.van-overlay,
.van-toast {
  user-select: none;
}

@keyframes scale {
  0% {
    transform: scale(1);
  }
  12.5% {
    transform: scale(1.05);
  }
  25% {
    transform: scale(1);
  }
  37.5% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes shake {
  0% {
    transform: rotate(0) scale(1);
  }
  4% {
    transform: rotate(20deg) scale(1.2);
  }
  8% {
    transform: rotate(0) scale(1);
  }
  13% {
    transform: rotate(20deg) scale(1.2);
  }
  17% {
    transform: rotate(0) scale(1);
  }
  33% {
    transform: rotate(0) scale(1);
  }
  38% {
    transform: rotate(20deg) scale(1.2);
  }
  42% {
    transform: rotate(0) scale(1);
  }
  46% {
    transform: rotate(20deg) scale(1.2);
  }
  50% {
    transform: rotate(0) scale(1);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}
// stylelint-disable declaration-no-important

.no-select {
  /*ios，如果不行可以加一个透明遮罩层*/
  -webkit-touch-callout: none;
  touch-callout: none;

  /*安卓*/
  -webkit-user-select: none !important;
  user-select: none !important;

  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

.line-box {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.3rem;
  .line {
    height: 1px;
    background: #ebedf0;
    flex: 1;
  }
  div:not(.line) {
    padding: 0 6px;
  }
}
.shadow-sm {
  box-shadow: 0 0.027777rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.1111rem 0.2222rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 0.2222rem 3rem rgba(0, 0, 0, 0.175) !important;
}
.shadow-none {
  box-shadow: none !important;
}

.flex {
  @include flex;
  &-column {
    @include flex(column);
  }
  &-wrap {
    flex-wrap: wrap;
  }
  &-1 {
    flex: 1;
  }
  &-justify-start {
    justify-content: flex-start;
  }
  &-justify-center {
    justify-content: center;
  }
  &-justify-end {
    justify-content: flex-end;
  }
  &-justify-between {
    justify-content: space-between;
  }
  &-align-start {
    align-items: flex-start;
  }
  &-align-center {
    align-items: center;
  }
  &-align-end {
    align-items: flex-end;
  }
}
